﻿using System;
using Presentation;
using WeightConverterNamespace;

namespace WeightConverterTests
{
    public class FakeView : IView
    {
        public int FromType { get; set; }
        public string FromValue { get; set; }

        public string ToKg { get; set; }
        public string ToOunce { get; set; }
        public string ToPound { get; set; }
        public string ToDram { get; set; }
        public string ToGrain { get; set; }

        public bool TBoxKgReadOnly { get; set; }
        public bool TBoxPoundReadOnly { get; set; }
        public bool TBoxOunceReadOnly { get; set; }
        public bool TBoxDramReadOnly { get; set; }
        public bool TBoxGrainReadOnly { get; set; }
        public bool HTMLLoggerMenuItemChecked { get; set; }
        public bool TxtLoggerMenuItemChecked { get; set; }

        public string ErrorMessage { get; set; }
       
        public event Action OnCalculateClick;
        public event Action SelectedIndexChanged;
        public event Action OnReadLogButtonClick;
        public event Action OnDeleteLogButtonClick;
        public event Action OnHTMLLoggerMenuItemClick;
        public event Action OnTxtLoggerMenuItemClick;
        public event DLogHandler LogHandler;

        public void CalculateClick()
        {
            OnCalculateClick();
        }
        public void SelectedIndexChange()
        {
            SelectedIndexChanged();
        }
        public void ReadLogButtonClick()
        {
            OnReadLogButtonClick();
        }
        public void DeleteLogButtonClick()
        {
            OnDeleteLogButtonClick();
        }
        public void TxtLoggerMenuItemClick()
        {
            OnTxtLoggerMenuItemClick();
        }
        public void HTMLLoggerMenuItemClick()
        {
            OnHTMLLoggerMenuItemClick();
        }
        public void DeleteLogMenuItemClick()
        {
            OnDeleteLogButtonClick();
        }
    }
}
